for (let i = 1; i < 10; i++) {
  const row = [];
  for (let j = 1; j <= i; j++) {
    row.push(`${j} * ${i} = ${i * j}`);
  }
  console.log(row.join(`    `));
}
